package com.nineclock.api.system.controller;

import com.nineclock.common.entity.Result;
import com.nineclock.dto.SysCompanyUserDTO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

import java.util.List;

@Api(value = "公司员工相关服务")
public interface SysCompanyUserControllerApi {
    @ApiOperation("根据用户iD或企业ID查询员工信息")
    public Result<List<SysCompanyUserDTO>> findCompanyUserByUserIdAndCompanyId(Long userId, Long companyId);

    @ApiOperation("根据id查询员工信息")
    public Result<SysCompanyUserDTO> findCompanyUserById(Long companyUserId);

    @ApiOperation("App根据手机号获取员工信息")
    public Result<SysCompanyUserDTO> queryOne(String mobile);

    @ApiOperation("获取当前企业所有员工")
    public Result<List<SysCompanyUserDTO>> queryAllCompanyUsers();

    @ApiOperation(value="根据企业ID查询企业的主管理员")
    public Result<SysCompanyUserDTO> queryAdminByCompanyId(Long companyId);
}
